import React, {PureComponent} from "react"
import TaskProgress from "../index"
import { Button } from "antd"

export default class Base extends PureComponent {
    TaskPRef;

    bg(){
        let TaskPRef = this.TaskPRef
        if(TaskPRef){
            TaskPRef.setState({
                result:{
                    status:1,

                }
            })
        }
    }

    render(){
        return <>
            <Button onClick={this.bg.bind(this)}>
                开始
            </Button>
            <TaskProgress onRef={ref => this.TaskPRef = ref}/>
        </>
    }
}